package com.jinlingxiu.app.di

import com.jinlingxiu.app.mvp.contract.SolutionContract
import com.jinlingxiu.app.mvp.model.SolutionModel
import com.jinlingxiu.app.mvp.presenter.SolutionPresenter
import com.jinlingxiu.app.mvp.ui.activity.SolutionActivity
import org.koin.dsl.module

val SolutionModule = module {
    scope<SolutionActivity> {
        scoped<SolutionContract.Model> { SolutionModel(get()) }
        scoped {
            SolutionPresenter(get(), this.getSource())
        }
    }
}
